package com.auxgroup.smarthome.enterpriseapi.responsebody.auxresult;

import com.auxgroup.smarthome.enterpriseapi.responsebody.AbstractErrorBody;

import java.util.List;

/**
 * @Author: laiqiuhua.
 * @Date: 2017/8/18 10:48.
 */
public class AuxDeviceTrendResult extends AbstractErrorBody {
    private List<TrendData> data;

    public static class TrendData {
        private String date;
        /**
         * 设备增长数量
         */
        private int incr_count;
        /**
         * 设备故障数量
         */
        private int fault_count;

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public int getIncr_count() {
            return incr_count;
        }

        public void setIncr_count(int incr_count) {
            this.incr_count = incr_count;
        }

        public int getFault_count() {
            return fault_count;
        }

        public void setFault_count(int fault_count) {
            this.fault_count = fault_count;
        }

        public TrendData buildData(int incr_count, int fault_count) {
            this.incr_count+=incr_count;
            this.fault_count+=fault_count;
            return this;
        }

    }

    public List<TrendData> getData() {
        return data;
    }

    public void setData(List<TrendData> data) {
        this.data = data;
    }
}
